import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      redirect: "/rotate",
    },
    {
      path: "/rotate",
      name: "rotate",
      component: () => import("@/views/Rotate.vue"),
    },
    {
      path: "/plot",
      name: "plot",
      component: () => import("@/views/Plot.vue"),
    },
    {
      path:'/city-view',
      name: 'cityview',
      component: () => import('@/views/CityView.vue')
    },
    {
      path:'/search',
      name: 'search',
      component: () => import('@/views/Search.vue')
    },
    {
      path:'/bridge',
      name: 'bridge',
      component: () => import('@/views/Bridge.vue')
    },
    {
      path:'/measure/:type',
      name:'measure',
      component: () => import('@/views/Measure.vue')
    }
  ],
});

export default router;
